from sqlalchemy import Column,String,Integer,ForeignKey,Text
from model.school import UserModel
from model import db


class Reedmodel(db.Model):
    id = Column(Integer,primary_key=True,autoincrement=True)
    name = Column(String(43))
    couent = Column(Text)


user_to_reed = db.Table('userreed',
                        Column('user_id',Integer,ForeignKey('user.id')),
                        Column('reed_id',Integer,ForeignKey('reedmodel.id'))
                        )
